php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#315322 - 08/21/07 07:24 PM [7.2.1] - Expanded group permissions
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
Couldn't wait til 7.3, because a customer needed it and had a spare afternoon.. So this puppy was born to bridge the time gap.

It allows an Admin to selectively dole out permissions based upon with group or groups they are in..

It not only looks at whether the group feature is enabled or disabled, but additionally takes into account an optional post count requirement for each feature.

Features only come into play, if the board allows the feature globally or on a per forum basis.

Features can be or'ed together, much like we have now for forum based group permissions.

Group features also utilize the same type of permission caching that Rick employed for Forums. It's very efficient that way.

I believe a picture or pictures is worth a 1003 words, so here goes some screenies..

select



then



and voila



You'll notice that i pulled the custom title per group feature over into THIS matrix, so don't be alarmed if you click on the other tab and notice it's 'missing'.. It just moved over to it's newfound home smile

I belive the last screenie is self explanatory..

Feel free to ask questions..

Oh and backup your files etc etc, before doing this puppy. It's a medium to hard modification..

and read the ReadMe.txt for all the dirty rotten details that i didn't cover here as well as what to actually do if you want this on your board..



Attachments
ReadMe.txt (25 downloads)
Description: Take a wild guess..


_________________________

Top
#315323 - 08/21/07 07:31 PM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Lookin good
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#315329 - 08/21/07 11:11 PM Re: [7.2.1] - Group feature permission matrix [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Wouldn't download for some reason - now it does laugh

Looks awful cool- even if it's only 943 lines eek I may try to adapt the old auto-hack app for threads. smile
_________________________
- Allen wavey
- What Drives You?

Top
#315330 - 08/21/07 11:16 PM Re: [7.2.1] - Group feature permission matrix [Re: AllenAyres]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
hmm... only 10 steps, that isn't bad afterall - thanks for the mod, looks to be real nice smile
_________________________
- Allen wavey
- What Drives You?

Top
#315331 - 08/21/07 11:19 PM Re: [7.2.1] - Group feature permission matrix [Re: AllenAyres]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
i think it's 12 !

you need to re-download the new Readme.txt.. i forgot a very important one in there..

namely modifying the user class in ubbthreads.inc.php for cached group feature permissions!

_________________________

Top
#315332 - 08/21/07 11:21 PM Re: [7.2.1] - Group feature permission matrix [Re: AllenAyres]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
Originally Posted By: AllenAyres
I may try to adapt the old auto-hack app for threads. smile


i'd love to know more about this!

if there is a more automated way of applying hacks/mods/patches.. i would be willing to adapt it, if need be smile
_________________________

Top
#315333 - 08/21/07 11:28 PM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
bleh.. 1 more upload. the SQL syntax was sn00kered frown
_________________________

Top
#315335 - 08/21/07 11:39 PM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Originally Posted By: sirdude
Originally Posted By: AllenAyres
I may try to adapt the old auto-hack app for threads. smile


i'd love to know more about this!

if there is a more automated way of applying hacks/mods/patches.. i would be willing to adapt it, if need be smile


I can't even remember the name of it right now, I was the king of using it tho... since I applied mods for customers I might have to add one mod 15 times, so it paid off in time saved many times over and I didn't make any mistakes once it worked the first time smile

Ahh, here it is: http://www.ubbdev.com/db/ultimatebb.php/forum/22.html

Multihack - Troy wrote it and I wore callouses in it. smile
_________________________
- Allen wavey
- What Drives You?

Top
#315336 - 08/21/07 11:47 PM Re: [7.2.1] - Group feature permission matrix [Re: AllenAyres]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
oh, this mod will come in very handy for a friend's site. He's stuck on 6.5 because of the mods he has in place smile
_________________________
- Allen wavey
- What Drives You?

Top
#315337 - 08/22/07 12:04 AM Re: [7.2.1] - Group feature permission matrix [Re: AllenAyres]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
cool ! wink

btw, i've already had a couple queries on what the 'self explanatory' picture was.. which means it wasn't VERY SELF explanatory after all laugh

soo.. let's start with the picture:



Let's take the Cusom Title column. It's saying that all groups are allowed custom titles (check boxes checked).. but the Users group need to get to 200 posts before their's becomes enabled..

Now onto Search.. This enables the groups to use the 'Search' button or Menu option. Where you go to advanced, if desired etc etc.. It does NOT limit show user posts and the like. (for now).. Anyway, once again only the Users group must have a post count (40) before they can search..

Avatar is a little different.. but only slightly.. Here the board configuration must first allow avatars in the first place. If that is done, then these group features kick in to further filter by appropriate groups.

PMs are even a little more different. We currently have the ability to turn off PM per USER.. so if that's turned off, they won't be able to PM period.. but if it's on for the user and they fall into say the Users group, then they can start PMing @ 40 posts..

Can upload. This applies to attachments. So if a forum FIRST allows attachments at all, then these group permissions go further to filter by group...

As you can see, it's quite flexible already..

There is of course a wish list and i don't see why it can't be expanded upon.. eg:

  • Images in Sigs
  • longer Edit post time
  • longer Delete post time
  • longer back in time search
  • larger upload filesizes
  • Can start a Poll
  • avatars can be broken down into:
    • can link remote
    • can use stock
    • can upload
  • and so on and so on


reason this got born real quick, was there was a short term need for it.

note: if a member is part of mutiple groups, the Least common denominator to enable wins. ie: if one group requires 10 posts and another group requires 1000 posts.. and a user is part of both groups with 100 posts.. they will get enabled, because of the 10 post group...

get the drift?
_________________________

Top
#315340 - 08/22/07 12:10 AM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I tried to have a VBasic programmer friend of mine look at an auto hack program, but he's a student and we didn't get very far...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#315342 - 08/22/07 12:19 AM Re: [7.2.1] - Group feature permission matrix [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
The mod is very nice SD, this will be muy helpful thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#315343 - 08/22/07 12:38 AM Re: [7.2.1] - Group feature permission matrix [Re: AllenAyres]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
Thanks Allen.. my afternoon off served well then..

btw, i have this running on two Victim's beta sites.. as well as on 2 of my own 'bleeding edge' sites just for development.

all seem to work fine smile

well, the bleeding edge ones are a little shaky, because i have a ton of ajax (yui) code flying around right now.. but that's separate from this modification..
_________________________

Top
#315347 - 08/22/07 05:49 AM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Many thanks for this. smile

_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#315348 - 08/22/07 05:53 AM Re: [7.2.1] - Group feature permission matrix [Re: Ian_W]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
I have yet to read the directions, but will it give an appropriate error if say (given your example) a new user tries to PM before they have made 5 posts.

If not it would be nice if an error said ' Sorry, but your post count is not yet high enough to send PM's - receiving PM's in unaffected. '

_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#315351 - 08/22/07 06:34 AM Re: [7.2.1] - Group feature permission matrix [Re: Ian_W]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
well, the error is in the language file and it's more generic. ie: it doesn't distinguish between the checkbox and the post count..

they are taken as a combo bombo enable.. if checked AND postcount then bada bing... else bummer..

sooooo, you could edit the lang file to say..

"dude, either sending pm's are totally disabled for your sorry arse or you need some more posties.. either way, you're shut down (for now)"

:2c:
_________________________

Top
#315356 - 08/22/07 10:59 AM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Rofl, i love that error message wink...

Though it could be a great spam prevention; forcing users to have say 25 posts before sending messages, at least you'd be protecting yourself from drive-by spammers...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#315366 - 08/22/07 11:03 PM Re: [7.2.1] - Group feature permission matrix [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Wondering, will this cause issues when we get to 7.3?
_________________________
- Allen wavey
- What Drives You?

Top
#315368 - 08/23/07 12:14 AM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
well, it definitely could because i have no idea how far Rick intends to go or what his way of implementation is..

i chose the most logical means of expanding group features that i saw.. i liked the way he cached forum permissions, so i fit in group features the same way.

oh and i only had 1 afternoon/evening (late one) to slap the code together too laugh

he may be thinking something different and on a more grand scale..

example would be that i created a totally NEW table for the group feature cache.. well.. maybe we wanted to just add a field for the serialized features per user in the ubbt_CACHED_PERMISSIONS table instead..

and there maybe more things we want to add in the way of group features such as:

  • group can use [img] in posts
  • group can have [img] in sig
  • configurable edit time per group
  • configureable delete time per group
  • group can toggle html markup
  • ability to ignore users
  • use of special tags.. ie: [yahoovideo]..
  • group can have more characters in their sig
  • group can upload sigs to a storage area on server (ala avatars)
  • group can create polls
  • group can conquer the world! (i joke) laugh
  • and on and on...


so although i'd love to be privvy to what's in Rick's brain, as there is some neat stuff rollin' around.. i can't.. sooo

Rick will be the best one to answer that...
_________________________

Top
#315371 - 08/23/07 12:43 AM Re: [7.2.1] - Group feature permission matrix [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
lol, i just realized i reproduced the wish list that i had typed in last nite...

dunno how similar they are, but you get the drift smile

just OR the two lists to come up with master 'wish list' wink
_________________________

Top
Page 1 of 2 1 2 >



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks